package com.erp.system.service.impl;

import com.erp.common.utils.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.erp.system.dao.TravelDao;
import com.erp.system.domain.TravelDO;
import com.erp.system.service.TravelService;



@Service
public class TravelServiceImpl implements TravelService {
	@Autowired
	private TravelDao travelDao;
	
	@Override
	public TravelDO get(Long id){
		return travelDao.get(id);
	}
	
	@Override
	public List<TravelDO> list(Map<String, Object> map){
		return travelDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return travelDao.count(map);
	}
	
	@Override
	public int save(TravelDO travel){
		return travelDao.save(travel);
	}
	
	@Override
	public int update(TravelDO travel){
		return travelDao.update(travel);
	}
	
	@Override
	public int remove(Long id){
		return travelDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return travelDao.batchRemove(ids);
	}

	@Override
	public int okconfirm(Long id, Integer status) {
		return travelDao.okconfirm(id,status);
	}

	@Override
	public List<TravelDO> reportlist(Map<String, Object> map) {
		return travelDao.reportlist(map);
	}

	@Override
	public int reportcount(Map<String, Object> map) {
		return travelDao.reportcount(map);
	}

}
